#define _CRT_SECURE_NO_WARNINGS
int* printNumbers(int n, int* returnSize)
{
    int* ret = (int*)malloc(sizeof(int) * (pow(10, n) - 1));
    int i = 0;
    for (i = 0; i < pow(10, n) - 1; i++)
    {
        *(ret + i) = i + 1;
    }
    *returnSize = pow(10, n) - 1;
    return ret;
}